<template>
	<view>
		<u-cell-group>
			<u-cell
				v-for="item in rechargeRulList"
				:key="item.id"
				:title="item.ruleName"
				:value="'每充值' + item.rechargeMoney + '元' + '赠送'+item.giveMoney + '元'"
				:label="item.ruleRemark"
			></u-cell>
		</u-cell-group>
	</view>
</template>

<script>
export default {
	data() {
		return {
			rechargeRulList: [] // 充值规则列表
		};
	},
	onLoad() {
		this.getRechargeRuleList();
	},
	methods: {
		// 获取充值规则列表
		async getRechargeRuleList() {
			const res = await this.$api.rechargeRule.list({ limit: 99 });
			if (res.code === 200) {
				this.rechargeRulList = res.data.list;
			}
		}
	}
};
</script>

<style lang="scss"></style>
